import type { AlarmSaveOrUpdateWarningRuleParamsItem } from '@/types'

export const MONITOR_TYPE = [
  {
    label: '无',
    value: 0,
  },
  {
    label: '十五分',
    value: 1,
  },
  {
    label: '一小时',
    value: 2,
  },
  {
    label: '一日',
    value: 3,
  },
  {
    label: '一周',
    value: 4,
  },
  {
    label: '一月',
    value: 5,
  },
  {
    label: '一年',
    value: 6,
  },
]

export type _IndicatorRule = Omit<
  AlarmSaveOrUpdateWarningRuleParamsItem,
  'indicatorId' | 'id' | 'statisticalType' | 'indicatorCode'
>

export const editStateIdentity = Symbol('控制编辑状态')
